import Vue from 'vue'//引入路由
import Router from 'vue-router'//引入vue-router
import Login from '../views/Login.vue'
import BingLi from '../views/BingLi.vue'
import Home from '../views/Home.vue'
import register from '../views/register.vue'
import AddPeople from "../views/AddPeople"
import AddBingLi from "../views/AddBingLi";
import Update from "../views/Update";
import UpdateBingLi from "../views/UpdateBingLi";
import personal from '../views/personal.vue'
import PersonalTwo from "../views/PersonalTwo";
import SelectOne from "../views/SelectOne";
import SelectTwo from "../views/SelectTwo";

Vue.use(Router)//全局使用Router

export default new Router({
  mode: 'history',
  routes: [//配置路由
    {
      path: '/',//链接路径
      name: 'Login',//路由名称
      component: Login,
      hidden: true
    },
    {
      path: '/Home',
      name: '导航1',
      component: Home,
      children: [
        {
          path: '/register',
          name: '体检表总览',
          component: register
        },
        {
          path: '/bingLi',
          name: '病例表总览',
          component: BingLi
        },
        {
          path: '/addPeople',
          name: '添加信息',
          component: AddPeople
        },
        {
          path: '/addBingLi',
          name: '添加病例信息',
          component: AddBingLi
        },
        {
          path: '/update',
          name: '添加信息',
          component: Update
        },
        {
          path: '/updateBingLi',
          name: '修改病例信息',
          component: UpdateBingLi
        },
        {
          path: '/personal',
          name: '个人情况查询',
          component: personal
        },
        {
          path: '/PersonalTwo',
          name: "查询病例信息",
          component: PersonalTwo
        },
        {
          path: '/selectOne',
          name: "查找页面",
          component: SelectOne
        },
        {
          path: '/selectTwo',
          name: "查找页面",
          component: SelectTwo
        }

      ]
    }
  ]
})
